import React from 'react'

import { Route,Switch,Redirect } from 'react-router-dom'

// const Login=lazy(()=>import('./pages/Login/Login'))
import Login from './pages/Login/Login'
import Admin from './pages/Admin/Admin'

// import './App.less'
import 'antd/dist/antd.css'

// const Admin=lazy(()=>import('./pages/Admin/Admin'))

const App=()=>{

  return (
    <Switch>
      <Route path='/login' component={Login}></Route>
      <Route path='/' component={Admin}></Route>
      <Redirect to='/login'></Redirect>
    </Switch>
  )
}

export default App